
function CalCardNnmj(nPaymen,nRound,nPlayCount)
    local nNeedCard = 0
    if nPaymen == 1 then 
        if nRound == 4 then 
            nNeedCard = 10
        elseif nRound == 4 then
            nNeedCard = 16
        elseif nRound == 4 then
            nNeedCard = 30
        end
    else
         if nRound == 4 then 
            nNeedCard = 6
        elseif nRound ==4 then
            nNeedCard = 8
        elseif nRound ==4 then
            nNeedCard = 16
        end
    end
    return nNeedCard
end

function CalCardNtmj(nPaymen,nRound,nPlayCount)
    local nNeedCard = 0
    if nPaymen == 1 then 
        if nRound == 6 then
            nNeedCard = 30
        elseif nRound == 12 then
            nNeedCard = 60
        end
    else
        if nRound ==6 then
            nNeedCard = 10
        elseif nRound ==12 then
            nNeedCard = 20
        end
    end
    return nNeedCard
end

--南通斗地主
function CalCardNtDdz(nPaymen,nRound,nPlayCount)
    local nNeedCard = 0
    if nPaymen == 1 then 
        if nRound == 6 then
            nNeedCard = 30
        elseif nRound == 12 then
            nNeedCard = 60
        end
    else
         if nRound == 6 then 
            nNeedCard = 10
        elseif nRound ==12 then
            nNeedCard = 20
        end
    end
    return nNeedCard
end

function CalCardDhmj(nPaymen,nRound,nPlayCount)
    local nNeedCard = 0
    if nPaymen == 1 then 
        if nRound == 4 then
            nNeedCard = 2
        elseif nRound == 8 then
            nNeedCard = 3
        end
    else
        if nRound ==6 then
            nNeedCard = 10
        elseif nRound ==12 then
            nNeedCard = 20
        end
    end
    return nNeedCard
end

function CalSSZ(nPaymen,nRound,nPlayCount)
    local nNeedCard = 0
    if nPaymen == 1 then 
        if nRound == 20 then
            nNeedCard = 8
        elseif nRound == 30 then
            nNeedCard = 12
        end
    else
        if nRound ==20 then
            nNeedCard = 8
        elseif nRound ==30 then
            nNeedCard = 12
        end
    end
    return nNeedCard
end


local CalCard = {[1001]=CalCardNnmj,[2006]=CalCardNtmj, [2007]=CalCardNtDdz,[1010]=CalCardDhmj,[2003]=CalSSZ}

return CalCard